package com.ks.cms.controller;


import com.ks.cms.controller.dto.SearchCriteriaBase;
import com.ks.cms.service.IBCmsNewsAdminService;
import com.ks.core.core.Result;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

/**
 * <p>
 * 信息发布系统的应用端信息表
 * </p>
 *
 * @author kingdee123
 * @since 2020-12-21
 */
@RestController
@RequestMapping("/bCmsNewsAdmin")
@Api(value = "信息发布服务应用端管理模块", description = "信息发布服务应用端管理模块")
public class BCmsNewsAdminController extends _ControllerBase {
    @Autowired
    private IBCmsNewsAdminService bCmsNewsAdminService;

    @PostMapping("/selectBCmsNewsAdmin")
    @ApiOperation(value = "信息发布应用端列表查询接口", notes = "信息发布应用端列表查询接口")
    public Object selectBCmsNewsAdmin (@RequestBody SearchCriteriaBase searchCriteriaBase){
        Map<String,Object> resultMap =bCmsNewsAdminService.selectBCmsNewsAdmin(getContext(),searchCriteriaBase);
        return Result.success(resultMap);
    }
}

